import { axios } from '@/utils/request'

const api = {
  list: '/intelligent-match/intelligent-scene',
  save: '/intelligent-match/intelligent-scene-save',
  status: '/intelligent-match/intelligent-scene-status',
  del: '/intelligent-match/intelligent-scene-del',
  setDefault: '/intelligent-match/intelligent-scene-default',
  dragChange: '/intelligent-match/intelligent-status'
}

export default api

export function list (parameter) {
  return axios({
    url: api.list,
    method: 'get',
    params: parameter
  })
}

export function save (parameter) {
  return axios({
    url: api.save,
    method: 'post',
    data: parameter
  })
}

export function status (parameter) {
  return axios({
    url: api.status,
    method: 'get',
    params: parameter
  })
}

export function setDefault (parameter) {
  return axios({
    url: api.setDefault,
    method: 'get',
    params: parameter
  })
}

export function del (parameter) {
  return axios({
    url: api.del,
    method: 'get',
    params: parameter
  })
}



export function dragChange (parameter) {
  return axios({
    url: api.dragChange,
    method: 'get',
    params: parameter
  })
}



export function statusAll (parameter) {
  return axios({
    url: api.status,
    method: 'get',
    params: parameter
  })
}


